package com.cch.demo.sys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 进行业务页面跳转
 */
@Controller
@RequestMapping("sys")
public class SysController {

    @RequestMapping("toLogin")
    public String toLogin(){
        return "system/index/login";
    }

    @RequestMapping("index")
    public  String toIndex(){return "system/index/index";}

    @RequestMapping("toDeskManager")
    public String toDeskManager(){return  "system/index/main";}

    @RequestMapping("toLogInfoManager")
    public String toLogInfo(){return "system/logInfo/logInfo";}

    @RequestMapping("toNoticeManager")
    public String toNoticeManager(){return "system/Notice/Notice";}

    //部门管理
    @RequestMapping("toDeptManager")
    public String toDeptManager(){return "system/dept/DeptManager";}

    @RequestMapping("toDeptLeft")
    public String toDeptLeft(){return "system/dept/DeptLeft";}

    @RequestMapping("toDeptRight")
    public String toDeptRight(){return "system/dept/DeptRight";}


    //菜单管理
    @RequestMapping("toMenuManager")
    public String toMenuManager(){return "system/Menu/MenuManager";}

    @RequestMapping("toMenuLeft")
    public String toMenuLeft(){return "system/Menu/MenuLeft";}

    @RequestMapping("toMenuRight")
    public String toMenuRight(){return "system/Menu/MenuRight";}

    //权限管理
    @RequestMapping("toPermissionManager")
    public String toPermissionManager(){return "system/permission/PermissionManager";}

    @RequestMapping("toPermissionLeft")
    public String toPermissionLeft(){return "system/permission/PermissionLeft";}

    @RequestMapping("toPermissionRight")
    public String toPermissionRight(){return "system/permission/PermissionRight";}

    //角色管理
    @RequestMapping("toRoleManager")
    public String toRoleManager(){return "system/Role/Role";}

    //角色管理
    @RequestMapping("toUserManager")
    public String toUserManager(){return "system/User/User";}

    //缓存管理
    @RequestMapping("toCacheManager")
    public String toCacheManager(){return "system/Cache/cacheManager";}
    
    //数据源管理
    @RequestMapping("toDataSourceManager")
    public String toDataSourceManager(){return "system/DataSource/dataSourceManager";}
    
    //执行sql
    @RequestMapping("toExecuteSqlManager")
    public String toExecuteSqlManager(){return "system/ExecuteSql/executeSqlManager";}
}
